import { Color, Font, Scale, TextContent, Vector2 } from "../util"
import { Component } from "./Component"

export class Button extends Component {
    /**
     * 基础属性
     */
    //Button类型
    public type = 1
    public uid = "985b5f12-31c9-4165-b12a-119c2c97f930"
    //名称
    public name = "btn_2"


    //键盘快捷键 默认0
    public short_cut: number
    //组合快捷键 默认0 shift 42 alt 56ctrl 29
    public short_cut_2: number

    /**按钮默认状态 */
    //常态贴图id    会与颜色混合 如果使用图片 颜色就白色
    public normal_picture: number
    //常态按钮颜色RGBA 在贴图上面
    public normal_color: Color
    //常态文本内容 与颜色二选一
    public normal_text: TextContent
    //常态文本颜色RGBA 在贴图上面
    public normal_font_color: Color
    //按下时缩放大小
    public touch_scale: Vector2

    //按钮状态是否开启 
    public bar_status = false

    /**按钮悬停状态 */
    public suspend_picture:number
    public suspend_color: Color
    public suspend_text: TextContent
    public suspend_font_color: Color
    /**按钮按下状态 */
    public press_picture:number
    public press_color: Color
    public press_text: TextContent
    public press_font_color: Color
    /**按钮禁用状态 */
    public disabled_picture:number
    public disabled_color: Color
    public disabled_text: TextContent
    public disabled_font_color: Color
    //按钮字体设置
    public font: Font
}